 <script type="text/javascript">
 function switchMenu(obj) {
            var el = document.getElementById(obj);
            if(el!=null){
				if ( el.style.display != "none" ) {
					el.style.display = 'none';
				}
				else {
					el.style.display = '';
				}
			}
    }
function compareDates(a,b){
	var ukDatea = a.split('/');
	var ukDateb = b.split('/');
	var rez;
	
	var x = ukDatea[2]*10000 + ukDatea[1]*100 + ukDatea[0];
	var y = ukDateb[2]*10000 + ukDateb[1]*100 + ukDateb[0];	
	rez=x-y;
	if(rez>0)
		return 1;
	else if(rez<0)
	return -1;
	else
	return 0;

}
jQuery.fn.dataTableExt.oSort['uk_date-asc']  = function(a,b) {
	return compareDates(a,b);
};

jQuery.fn.dataTableExt.oSort['uk_date-desc'] = function(a,b) {
	return compareDates(b,a);
	
	};
	
	
	jQuery.fn.dataTableExt.oSort['string-asc']  = function(a,b) {
	var x = $(a).html().toLowerCase();
	var y = $(b).html().toLowerCase();	
	return x.localeCompare(y);
};

jQuery.fn.dataTableExt.oSort['string-desc'] = function(a,b) {
	var x = $(a).html().toLowerCase();
	var y = $(b).html().toLowerCase();	
	return y.localeCompare(x);
};


 </script>
 